package com.hejia.alauda.persistence.mybatis;

import java.util.Map;

import org.apache.ibatis.annotations.Update;

import com.hejia.alauda.entity.Credit;
import com.hejia.alauda.persistence.BaseMapper;

public interface CreditMapper extends BaseMapper<Credit> {
	
	@Update("UPDATE `credit` SET `credits`=IFNULL(`credits`,0)+#{credits} WHERE id=#{id}")
	int updateCredit(Map<String, Object> params);
}
